/*
 * @Description:
 * @Author: wangyan
 * @Date: 2021-02-25 10:49:05
 * @LastEditTime: 2021-05-20 14:47:01
 * @LastEditors: @yzcheng
 */
import request from '@/utils/request';
import { CHECC_API_PROCESS } from '@/constants/proxy'

//根据id 删除 
export function deletClassifyById(params) {
    return request({
        url: CHECC_API_PROCESS + `/flow-classify/deleteById/${params.id}`,
        method: 'delete',
    })
}
//批量删除
export function deletClassifyByList(params) {
    return request({
        url: CHECC_API_PROCESS + `/flow-classify/deleteList?list=${params.list}`,
        method: 'delete',
    })
}
//分页查询
export function pageClassify(pageOption, data) {
    return request({
        url: CHECC_API_PROCESS + `/flow-classify/page`,
        method: 'post',
        params:pageOption,
        data
    })
}
//添加流程分类
export function addClassify(data) {
    return request({
        url: CHECC_API_PROCESS + '/flow-classify/save',
        method: 'post',
        data
    })
}
//获取list列表
export function listClassify() {
    return request({
        url: CHECC_API_PROCESS + `/flow-classify/getList`,
        method: 'get'
    })
}
//更新流程分类
export function updateClassify(data) {
    return request({
        url: CHECC_API_PROCESS + `/flow-classify/update`,
        method: 'patch',
        data
    })
}

